package org.lq.his.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.lq.his.dao.AddressDao;
import org.lq.his.pojo.Address;
import org.lq.his.service.AddressService;
import org.springframework.stereotype.Service;
@Service("addressService")
public class AddressServiceImpl implements AddressService {
	
	@Resource
	private AddressDao addressDao;

	public void setAddressDao(AddressDao addressDao) {
		this.addressDao = addressDao;
	}

	@Override
	public List<Address> getByType(Integer typeId) {
		
		return addressDao.getByTypeId(typeId);
	}

	@Override
	public List<Address> getByParentId(Integer parentId) {
		return addressDao.getByParentId(parentId);
	}

	@Override
	public List<Address> getAddressByTypeId(Integer typeId) {
		
		return addressDao.getAddressByTypeId(typeId);
	}
	
	
	
}
